@import '../../../../css/mobile/components/normalize';
@import '../../../../css/mobile/components/font';

.banner {
  line-height: 0;
  position: relative;
  text-align: center;

  img {
    display: inline-block;
    width: 100%;
  }
  .grab-btn {
    width: 250px;
    height: 250px;
    position: absolute;
    bottom: 130px;
    left: 50%;
    margin-left: -125px;
    animation: scaleDraw 1s ease-in-out infinite;

    @keyframes scaleDraw { /* 定义关键帧、scaleDraw是需要绑定到选择器的关键帧名称 */
      0% { /* 开始为原始大小 */
        transform: scale(1);
      }
      50% { /* 放大1.2倍 */
        transform: scale(1.2);
      }
    }
  }
  .money {
    font-size: 90px;
    font-family: Impact;
    font-weight: 400;
    color: rgba(255, 42, 29, 1);
    position: absolute;
    bottom: 335px;
    left: 202px;
    line-height: 1;
  }
  .look-other {
    width: 410px;
    height: 130px;
    position: absolute;
    bottom: 445px;
    left: 170px;
  }
}

.grab-list {
  background: rgba(56, 186, 251, 1);

  &:before {
    content: '' !important;
    display: block;
    height: 138px;
    background-image: url(../img/pic3.jpg);
    background-size: 100% 100%;
  }

  .grab {
    height: 160px;
    font-weight: 400;
    font-family: PingFangSC-Regular;
    color: rgba(255, 255, 255, 1);
    position: relative;

    .avatar {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      position: absolute;
      top: 30px;
      left: 46px;
    }

    .nickname {
      width: 270px;
      font-size: 28px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      position: absolute;
      top: 50px;
      left: 175px;
    }

    .created-at {
      font-size: 26px;
      position: absolute;
      top: 92px;
      left: 173px;
    }

    .amount {
      font-size: 30px;
      position: absolute;
      top: 33px;
      left: 473px;

      &.new:after {
        content: '新人福利' !important;
        display: inline-block;
        margin-left: 15px;
        width: 126px;
        height: 40px;
        line-height: 40px;
        background: rgba(255, 227, 35, 1);
        border-radius: 20px;
        font-size: 24px;
        font-family: PingFangSC-Regular;
        font-weight: 400;
        color: rgba(173, 98, 1, 1);
        text-align: center;
      }
    }

    .amount-info {
      font-size: 22px;
      line-height: 28px;
      position: absolute;
      top: 84px;
      left: 473px;
    }

    // 奇数背景色
    &:nth-of-type(odd) {
      background: rgba(255, 255, 255, 0.1);
    }

    // 偶数背景色
    &:nth-of-type(even) {
    }
  }
}

.rule {
  img {
    display: block;
    width: 100%;
  }
}

.mask {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1004;
  overflow: hidden;
  display: none;
  opacity: 0;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s linear 0s;

  .grab-success {
    width: 548px;
    height: 966px;
    position: relative;
    transform: scale(0);
    transition: transform 0.25s linear 0s;

    .bg {
      width: 548px;
      height: 966px;
    }

    .close {
      width: 66px;
      height: 66px;
      position: absolute;
      top: 5px;
      right: 33px;
    }

    #grab-close {
      width: 120px;
      height: 120px;
      position: absolute;
      top: 0;
      right: 0;
    }

    &.show {
      transform: scale(1);
    }
    &.hide {
      transform: scale(0);
    }
  }

  &.show {
    display: flex;
    opacity: 1;
  }

  &.hide {
    display: none;
    opacity: 0;
  }
}